package com.chanzany.builder.improve;

public class Client {
    public static void main(String[] args) {
        HouseDirector houseDirector = new HouseDirector(new CommonHouseBuilder());
        House commonHouse = houseDirector.constructHouse();
        System.out.println(commonHouse);
        houseDirector.setBuilder(new LuxuryHouseBuilder());
        House luxuryHouse = houseDirector.constructHouse();
        System.out.println(luxuryHouse);
    }
}
